package psn.polaris.db.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "polaris.data")
public class PolarisDataSourceInfo {

    /**
     * 数据库驱动类
     */
    private List<String> dataDriveClass;
    /**
     * 数据库链接地址
     */
    private List<String> url;
    /**
     * 数据库用户
     */
    private List<String> user;
    /**
     * 数据库密码
     */
    private List<String> pwd;
    /**
     * 连接池类
     */
    private List<String> poolClass;
    /**
     * 初始化连接数
     */
    private List<Integer> initConn;
    /**
     * 最大连接数
     */
    private List<Integer> maxConn;
    /**
     * 最小连接数
     */
    private List<Integer> minConn;
    /**
     * 最大等待时间
     */
    private List<Integer> maxWaitTime;

    public List<String> getDataDriveClass() {
        return dataDriveClass;
    }

    public void setDataDriveClass(List<String> dataDriveClass) {
        this.dataDriveClass = dataDriveClass;
    }

    public List<String> getUrl() {
        return url;
    }

    public void setUrl(List<String> url) {
        this.url = url;
    }

    public List<String> getUser() {
        return user;
    }

    public void setUser(List<String> user) {
        this.user = user;
    }

    public List<String> getPwd() {
        return pwd;
    }

    public void setPwd(List<String> pwd) {
        this.pwd = pwd;
    }

    public List<String> getPoolClass() {
        return poolClass;
    }

    public void setPoolClass(List<String> poolClass) {
        this.poolClass = poolClass;
    }

    public List<Integer> getInitConn() {
        return initConn;
    }

    public void setInitConn(List<Integer> initConn) {
        this.initConn = initConn;
    }

    public List<Integer> getMaxConn() {
        return maxConn;
    }

    public void setMaxConn(List<Integer> maxConn) {
        this.maxConn = maxConn;
    }

    public List<Integer> getMinConn() {
        return minConn;
    }

    public void setMinConn(List<Integer> minConn) {
        this.minConn = minConn;
    }

    public List<Integer> getMaxWaitTime() {
        return maxWaitTime;
    }

    public void setMaxWaitTime(List<Integer> maxWaitTime) {
        this.maxWaitTime = maxWaitTime;
    }
}
